package com.ruoyi.framework.config.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.util.unit.DataSize;

/**
 * @author dyun
 */
@Getter
@Setter
@ConfigurationProperties("alibaba.cloud.oss.dyun")
public class AliossPropertis {
    /**
     * 前端上传密钥过期时间, 默认为1小时,单位：秒
     */
    private Long expireTime = 60 * 60L;

    /**
     * buctket名称
     */
    private String bucketName;

    /**
     * oss上传地址
     */
    private String host;

    /**
     * Max file size.默认为10MB,单位：MB
     */
    private DataSize maxFileSize = DataSize.ofMegabytes(10);
}
